<template>
  <div>
    <h1>{{msg}}</h1>
    <h2>{{obj.name}}</h2>
    <h3>{{obj.age>18?'成年':'未成年'}}</h3>
  </div>
   
</template>

<script>
  export default{
    data(){
      return {
        msg:'哈喽，老黑',
        obj:{
          name:'老黑',
          age:18
        }
      }
    }
  }
</script>

<!-- Add "scoped" attribute to limit CSS to this component only -->
<style scoped>

</style>
